<?php

	global $linkColorList;
	
	//热门分类, font-size=1表示字体要加粗
	$hotCategories=array(
		array("id"=>"12","name"=>"男装", "font-size"=>1), 
		/*array("id"=>"13","name"=>"运动鞋", "font-size"=>0),		*/
		array("id"=>"16","name"=>"女装", "font-size"=>1),		
		array("id"=>"25","name"=>"男鞋/皮鞋", "font-size"=>0),
		array("id"=>"17","name"=>"女鞋", "font-size"=>1),		
		array("id"=>"18","name"=>"内衣/家居服", "font-size"=>0),		
		array("id"=>"21","name"=>"箱包皮具", "font-size"=>1),
		array("id"=>"52","name"=>"服饰配件", "font-size"=>0),
		
		array("id"=>"1","name"=>"手机", "font-size"=>1), 
		array("id"=>"2","name"=>"笔记本电脑", "font-size"=>0),		
		array("id"=>"5","name"=>"MP3/MP4", "font-size"=>0),
		array("id"=>"7","name"=>"数码配件", "font-size"=>0),		
	/*	array("id"=>"6","name"=>"数码相机", "font-size"=>0),	*/		
		array("id"=>"8","name"=>"家用电器", "font-size"=>1),
		
		array("id"=>"29","name"=>"居家/日用/卫浴", "font-size"=>0),
		array("id"=>"32","name"=>"床上用品/窗帘布艺", "font-size"=>1),
		array("id"=>"35","name"=>"装潢/灯具/五金", "font-size"=>0),
	/*	array("id"=>"22","name"=>"手表", "font-size"=>0),			*/

		array("id"=>"37","name"=>"零食/特产", "font-size"=>0),
		array("id"=>"38","name"=>"母婴用品", "font-size"=>1),

		array("id"=>"42","name"=>"书籍杂志", "font-size"=>0),
		array("id"=>"19","name"=>"护肤品/彩妆/香水", "font-size"=>1),		
		array("id"=>"20","name"=>"珠宝/钻石/翡翠", "font-size"=>0),
		array("id"=>"23","name"=>"首饰/时尚饰品", "font-size"=>0),		
		array("id"=>"36","name"=>"保健品/滋补品", "font-size"=>0)	
					); 
	
		
	//热门标签
	$hotTags=array(
		array("name"=>"原单", "font-size"=>0),
		array("name"=>"真货", "font-size"=>0),	
		array("name"=>"性价比高", "font-size"=>0),						
		array("name"=>"原装", "font-size"=>0),
    	array("name"=>"东西便宜", "font-size"=>0),	
		array("name"=>"态度好", "font-size"=>0),			
		array("name"=>"发货快", "font-size"=>0),			
		array("name"=>"随便买买", "font-size"=>0),
		array("name"=>"质量好", "font-size"=>0),	
		array("name"=>"东西实用", "font-size"=>0),	
		array("name"=>"衣服合身", "font-size"=>0),	
		array("name"=>"正品", "font-size"=>0),
		array("name"=>"信誉好", "font-size"=>0),
		array("name"=>"秒杀", "font-size"=>0),	
		array("name"=>"满意", "font-size"=>0),
		array("name"=>"收藏", "font-size"=>0),
		array("name"=>"喜欢", "font-size"=>0),	
		array("name"=>"心水", "font-size"=>0),
		array("name"=>"长草", "font-size"=>0),							
		array("name"=>"有特色", "font-size"=>0)
		); 
	
	//热门特色
	$shopDAO=GetShopDAO();
	$hotFeatures=$shopDAO->GetFeature();
	
	//最新点评
	$reviewDAO = GetReviewDAO();
	$tmpReview = $reviewDAO->GetNewReview(20);
	$newReviews=array();
	$num1 =	0;
	foreach($tmpReview as $Review)
	{
		if(!isset($newReviews["$userID"]) && strlen($Review['content']) > 200 )
		{
			$newReviews[]=$Review;//相同shop只取一次
			$num1++;
		}	
			
		if($num1==5)
			break;
	}
	
	//最热点评
	$hotReviews = $reviewDAO->GetHotReview(5);
	
	//差评精华
	$badReviewIDs = array("303", "330", "335", "349", "351");
	$badReviews = $reviewDAO->GetByIdList($badReviewIDs, false);
	
	//好评精华
	$goodReviewIDs = array("2", "295", "297", "344", "355");
	$goodReviews = $reviewDAO->GetByIdList($goodReviewIDs, false);
	
	
	//最新评单
	$listDAO = GetListDAO();
	$newLists = $listDAO->GetNewList(6);
	
	//最热评单
	$hotLists = $listDAO->GetHostList(6);
	
	//点评精华榜
	$rankList = $reviewDAO->GetReviewRankList(5);
	
	
	//热门店铺
	$newShops = $shopDAO->GetNewShop(10);
	//热门店铺
	$hotShops = $shopDAO->GetHotShop(10);
	
	//热门商城
	$hotMalls = $shopDAO->GetHotMall(10);
	
	//热门商品搜索关键字
	$hotproductTag=array(
				"秋冬睡衣",
				"热卖秋装",
				"小外套",
				"靴子上新",
				"白搭包包",
				"休闲裤",
				"进口化妆品",
				"补水面膜");
	
	//热门商城
	$productDAO = GetProductDAO();
	$hotProducts = $productDAO->GetHotProduct(10);
	
	return;
?>
